<html>
<head>
</head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<style>
.classtittle{
font-family: sans-serif;
font-weight: bold;
color: white;
font-size: 30px;
}
.class01{
background-color: tomato;
}
.class02{
background-color: violet;
}
.class03{
height: 26px;
width: 139px;
}
.class04{
font-size: 26px;
font-family: -webkit-body;
color: currentcolor;
}
.class05{
height: 51px;
width: 146px;
font-size: 22;
font-weight: bold;

.class06{

font-size: 18px;
}
</style>
<body>
<?php
if(isset($_POST["toan"]) && isset($_POST["ly"]) && isset($_POST["hoa"]) && isset($_POST["chuan"])){
	$toan = $_POST["toan"];
	$ly=$_POST["ly"];
	$hoa=$_POST["hoa"];
	$chuan=$_POST["chuan"];
	$tong = $toan+$ly+$hoa;
}
?>
<form id="form1" name="form1" action="tinhdiemthidaihoc.php" method="post">
<table align="center" cellpadding="2" cellspacing="0">
<tr class="classtittle">
<td colspan="2" align="center" class="class01"><span>KẾT QUẢ THI ĐẠI HỌC</span></td>
</tr>
<tr class="class02">
<td><span class="class04">Toán:</span></td>
<td><label><input name="toan"id="toan"type="text" value="<?php if(isset($_POST["toan"]))echo $_POST["toan"];?>"class="class03"/><label></td>
</tr>
<tr class="class02">
<td><span class="class04">Lý:</span></td>
<td><label><input name="ly"id="ly"type="text"value="<?php if(isset($_POST["ly"]))echo $_POST["ly"];?>"class="class03"/><label></td>
</tr>
<tr class="class02">
<td><span class="class04">Hóa:</span></td>
<td><label><input name="hoa"id="hoa"value="<?php if(isset($_POST["hoa"]))echo $_POST["hoa"];?>"type="text"class="class03"/><label></td>
</tr>
<tr class="class02">
<td><span class="class04">điểm chuẩn:</span></td>
<td><label><input class="class03" Style="color:#FF0000" name="chuan" id="chuan"value="<?php if(isset($_POST["chuan"]))echo $_POST["chuan"]; ?>"type="text" style="height:26px" style="width:139px"/><label></td>
</tr>
<tr class="class02">
<td><span class="class04">Tổng điểm:</span></td>
<td><label><input readonly="true"id="tong" style="background-color:yellow;"name="tong"value="<?php if(isset($_POST["tong"]))echo $tong;?>"type="text"class="class03"/><label></td>
</tr>
<tr class="class02">
<td><span  class="class04" >Kết quả thi:</span></td>
<td><label><input style="background-color:yellow;"readonly="true" id="result"name="result"value="<?php
	if(isset($_POST["tong"]) && isset($_POST["chuan"]))
	{
		if($tong>=$chuan)
		{
			$result="đậu";
		}
		else{
		$result="rớt";
		}
	echo $result;
	}
 ?>"class="class03"/><label></td>
</tr>
<tr>
<td colspan="2" align="center"><label><input class="class05"type="submit" value="Xem kết quả"/></label></td>
<td colspan="2">&nbsp</td>
</tr>

</table>
</form>
</body>
</html>